package com.cskaoyan.bean.common;

import lombok.Data;

/**
 * @author stone
 * @date 2022/01/06 16:37
 */
@Data
public class BaseParam {

    Integer page;
    Integer limit;
    String sort;
    String order;

    public static void main(String[] args) {
        // data binding
        BaseParam baseParam = new BaseParam();
        baseParam.setPage(1);
        baseParam.setLimit(10);
        baseParam.setSort("add_time");
        baseParam.setOrder("desc");
        // type conversion
        String pageStr = "5";
        Integer page = Integer.parseInt(pageStr);

    }
}
